home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib1
/
v_01_03
/
1n03008a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
336 b
|
27 lines
Listing 1
{*
* Terminate the program with an error message if
* pointer p is NIL.
*}
procedure not_NIL(p : pointer);
begin
if p = NIL then
runerror(204);
end;
var
p : ^char;
begin
p := NIL;
{$ifdef DEBUG}
not_NIL(p);
{$endif}
.
.
p^ := 'a';
end.